import request from '@/utils/request'
/**
 * 获取广告通知数据
 */
export function ActicleListAPI(params) {
  return request({
    url: '/content/article',
    params
  })
}
/**
 * 删除广告通知列表
 */
export function DeleteListAPI(id) {
  return request({
    method: 'DELETE',
    url: `/content/article/${id}`
  })
}
/**
 * 表单回显
 */
export function DetaileListAPI(id) {
  return request({
    url: `/content/article/${id}`
  })
}
/**
 * 添加通知广告列表
 */
export function AddactileAPI(data) {
  return request({
    method: 'POST',
    url: '/content/article',
    data
  })
}
/**
 * 编辑通知广告列表
 */
export function PutactileAPI(data) {
  return request({
    method: 'PUT',
    url: `/content/article/${data.id}`,
    data
  })
}
